#import "~/graphql_shared/fragments/author.fragment.graphql"

fragment Requirement on Requirement {
  id
  iid
  title
  titleHtml
  description
  descriptionHtml
  createdAt
  updatedAt
  state
  lastTestReportState
  lastTestReportManuallyCreated
  workItemIid
  testReports(first: 1, sort: CREATED_DESC) {
    nodes {
      id
      state
      createdAt
    }
  }
  userPermissions {
    updateRequirement
    adminRequirement
  }
  author {
    ...Author
  }
}
